//
//  SEHospitalizeOrderInfoCell.swift
//  SmartEyeForPatient
//
//  Created by qdsg on 2021/4/17.
//

import UIKit

struct SEHospitalizeOrderInfoCellModel {
    var titleText: String = ""
    var memoText: String = ""
    var titleColor: UIColor?
    var titleFont: UIFont?
    var memoColor: UIColor?
    var memoFont: UIFont?
}

class SEHospitalizeOrderInfoCell: UITableViewCell {

    static let className = "SEHospitalizeOrderInfoCell"
    static let reuseId = className

    @IBOutlet weak var titleLabel: UILabel!
    @IBOutlet weak var memoLabel: UILabel!

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    func updateCell(model: SEHospitalizeOrderInfoCellModel) {
        titleLabel.text = model.titleText
        titleLabel.textColor = model.titleColor ?? Asset.textLight.color
        titleLabel.font = model.titleFont ?? UIFont.regular(14)

        memoLabel.text = model.memoText
        memoLabel.textColor = model.memoColor ?? Asset.textDark.color
        memoLabel.font = model.memoFont ?? UIFont.regular(14)
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
